<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AssemblyItem>>" %>
<%@ Import Namespace="TaoSharp.Core.Domain"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <table>
        <tr>
            <th></th>
            <th>
                EntryPoint
            </th>
            <th>
                FullName
            </th>
            <th>
                Name
            </th>
            <th>
                Version
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Details", "Details", new { id=item.Id })%>
            </td>
            <td>
                <%= Html.Encode(item.EntryPoint) %>
            </td>
            <td>
                <%= Html.Encode(item.FullName) %>
            </td>
            <td>
                <%= Html.Encode(item.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.Version) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <%
        if (User.IsInRole("administrator")) {
    %>
    <p>
        <%=Html.ActionLink("Create New", "Create")%>
    </p>
    <%
        }
    %>

</asp:Content>

